package org.wenhuayuan.project.main.demo.demoDataItem

import android.widget.ImageView
import androidx.recyclerview.widget.RecyclerView
import org.wenhuayuan.project.main.R
import org.wenhuayuan.uilibrary.hiitem.HiDataItem

class TopBanner(data: ItemData) : HiDataItem<ItemData, RecyclerView.ViewHolder>(data) {
    override fun onBindData(holder: RecyclerView.ViewHolder, position: Int) {
        holder.itemView.findViewById<ImageView>(R.id.item_image).setImageResource(R.drawable.item_banner)
    }

    override fun getItemLayoutRes(): Int {
        return R.layout.layout_list_item_banner
    }

}